﻿using Microsoft.Ajax.Utilities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApplication1;

namespace myproject
{
    public partial class lowjin : System.Web.UI.Page
    {
        
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void lowgin_Click(object sender, EventArgs e)
        {
            var uid = txtname.Text.Trim();
            var pwd = txtpwd.Text.Trim();

            var sql = string.Format("select * from twobulade where UserName = '{0}' and Password = '{1}'", uid, pwd);
            var da = DbHelper.GetData(sql);
            if(da.Rows.Count == 1)
            {
                Response.Redirect("luoxuan.aspx");
            }
            else
            {
                six.Text = "仔细再想想好嘛！";
            }
        }

        protected void tice_Click(object sender, EventArgs e)
        {

        }
    }
}